﻿using Common.Communal;
using ERP.Domain.CustomerSupplier;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sell.Services.Suppliers
{
    public interface ISupplierServices
    {
        /// <summary>
        /// 供应商管理添加
        /// </summary>
        /// <param name="supplier"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddSupplier(Supplier supplier);
        /// <summary>
        ///供应商管理修改
        /// </summary>
        /// <param name="supplier"></param>
        /// <returns></returns>
        Task<ApiResult<int>> UpdateSupplier(Supplier supplier);
        /// <summary>
        /// 删除供应商管理
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteSupplier(int id);
    }
}
